package zlatan_demo11_foreach

object ClassDemo06 {
  def main(args: Array[String]): Unit = {
    val list1=List(3,1,2,9,7)
    val list2=list1.sorted
    println(list2)
    println("*"*30)
    val list3=list2.reverse
    println(list3)
  }

}
